import requests

headers={
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36'
}
url='https://fanyi.baidu.com/sug'
re=requests.get(url=url,headers=headers)
keyword=input("请输入要翻译的词:")
data={
    "kw":keyword
}
response=requests.post(url=url,data=data,headers=headers).json()
print(response["data"][0]["v"])
# print(response)

